﻿package Message.Game
{
    import Framework.Serialize.*;

    public class SGuildWarehouseApply extends Object
    {
        public var playerId:int;
        public var name:String;
        public var uid:String;
        public var itemCode:int;
        public var unit:int;
        public var amount:int;
        public var position:int;
        public var applyDt:Date;
        public var jsStr:String;
        public var state:EGuildWarehouseState;

        public function SGuildWarehouseApply()
        {
            return;
        }// end function

        public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.playerId);
            param1.writeString(this.name);
            param1.writeString(this.uid);
            param1.writeInt(this.itemCode);
            param1.writeInt(this.unit);
            param1.writeInt(this.amount);
            param1.writeInt(this.position);
            param1.writeDate(this.applyDt);
            param1.writeString(this.jsStr);
            this.state.__write(param1);
            return;
        }// end function

        public function __read(param1:SerializeStream) : void
        {
            this.playerId = param1.readInt();
            this.name = param1.readString();
            this.uid = param1.readString();
            this.itemCode = param1.readInt();
            this.unit = param1.readInt();
            this.amount = param1.readInt();
            this.position = param1.readInt();
            this.applyDt = param1.readDate();
            this.jsStr = param1.readString();
            this.state = EGuildWarehouseState.__read(param1);
            return;
        }// end function

    }
}
